﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="false" CodeBehind="ProductAdd.aspx.vb" Inherits="ACompany.OrderProcessing.UI.MVCWeb.ProductAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">


<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<h2>Add a new Product</h2>
<%  Using Html.BeginForm()%>

<fieldset>
<p>
Name:
<%=Html.TextBox("Name", ViewData.Model.Name)%>
<%=Html.ValidationMessage("Name", "*")%>
</p>
<p>
Stock:
<%=Html.TextBox("Stock", ViewData.Model.Stock)%>
<%=Html.ValidationMessage("Stock", "*")%>
</p>
<p>
Price: 
<%=Html.TextBox("Price", ViewData.Model.Price)%>
<%=Html.ValidationMessage("Price", "*")%>
</p>


<p>
<input type="submit" value="Save" />
</p>
</fieldset>
<% End Using %>

</asp:Content>
